<html><head></head><body><script type="text/javascript">q = new Object();tmp = location.search.substr(1).split('&');for (i = 0; i < tmp.length; i++) {tmp2 = tmp[i].split('=');q[tmp2[0]] = tmp2[1];}if (q['callback']){window.opener[q['callback']](q['token']);}else{window.opener.redirect(q['token'], q['redirect_uri']);}window.close();</script></body></html>